import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 666
 * Date: 2022-11-25
 * Time: 11:58
 */
//public class test {
//}
//class Solution {
//    public void rotate(int[] nums, int k) {
//k%= nums.length;
//int[] arr1=new int[k];
//int[] arr2=new int[nums.length-k];
//int indexarr1=0;
//int indexarr2=0;
//        for (int i = 0; i < nums.length; i++) {
//            if(i<nums.length-k){
//                arr2[indexarr2++]=nums[i];
//            }else {
//                arr1[indexarr1++]=nums[i];
//            }
//
//        }
//        indexarr1=0;
//        indexarr2=0;
//        for (int j = 0; j < nums.length; j++) {
//            if(j<k){
//                nums[j]=arr1[indexarr1++];
//            }else {
//                nums[j]=arr2[indexarr2++];
//            }
//
//        }
//    }
//}
class test{
    public static void main(String[] args) {
 String a="poooooooooooooo";
 String b="ooo";
        System.out.println(a.equals(b));
        System.out.println(a.compareToIgnoreCase(b));
        System.out.println(a.charAt(1));
        System.out.println(a.indexOf('o', 0));
            String s = String.format("%d-%d-%d", 2019, 9,14);
        System.out.printf("%d-%d-%d",2019, 9, 14);
            System.out.println(s);
        String str = "helloworld" ;
        System.out.println(str.replaceAll("l", "_"));
        System.out.println(str.replaceFirst("l", "_"));
        String str1 = "name=zhangsan&age=18" ;
        String[] result = str1.split("&") ;
        for (int i = 0; i < result.length; i++) {
            String[] temp = result[i].split("=") ;
            System.out.println(temp[0]+" = "+temp[1]);
            System.out.println(a.replace('o', 'l'));
            final int array[] = {1,2,3,4,5};
            array[0] = 100;
            System.out.println(Arrays.toString(array));
        }
    }
}